Drop the aliasing api for style properties
authorMatthias Clasen <mclasen@redhat.com>
Sun, 17 Sep 2017 20:56:55 +0000 (16:56 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 17 Sep 2017 20:57:53 +0000 (16:57 -0400)
This was added to deprecate style properties. All deprecated
style properties are gone now, so this is no longer needed.

gtk/gtkstyleproperty.c
gtk/gtkstylepropertyprivate.h

index fd49943a25fefe0a8632856991455e93925a768d..18fc42576874bdd2a326175ff375e76993a92a13 100644 (file)
@@ -202,26 +202,6 @@ _gtk_style_property_init_properties (void)
   _gtk_css_shorthand_property_init_properties ();
 }
 
-void
-_gtk_style_property_add_alias (const gchar *name,
-                               const gchar *alias)
-{
-  GtkStylePropertyClass *klass;
-  GtkStyleProperty *property;
-
-  g_return_if_fail (name != NULL);
-  g_return_if_fail (alias != NULL);
-
-  klass = g_type_class_peek (GTK_TYPE_STYLE_PROPERTY);
-
-  property = g_hash_table_lookup (klass->properties, name);
-
-  g_assert (property != NULL);
-  g_assert (g_hash_table_lookup (klass->properties, alias) == NULL);
-
-  g_hash_table_insert (klass->properties, (gpointer)alias, property);
-}
-
 /**
  * _gtk_style_property_lookup:
  * @name: name of the property to lookup
index c6ef1f8a04dcb6339600762671b6525a8b31fb99..5bd5a2cdf0e280442ee5008afeb2d81533d4c6cc 100644 (file)
@@ -63,9 +63,6 @@ GType               _gtk_style_property_get_type             (void) G_GNUC_CONST
 
 void                _gtk_style_property_init_properties      (void);
 
-void                _gtk_style_property_add_alias (const gchar *name,
-                                                   const gchar *alias);
-
 GtkStyleProperty *       _gtk_style_property_lookup        (const char             *name);
 
 const char *             _gtk_style_property_get_name      (GtkStyleProperty       *property);